package com.fivestar.finance.app.bean.resp;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by hjd on 2016/5/26.
 */
public class AreaResp implements Serializable, Parcelable {

    String regionId;//行政区划id
    String regionCode;//行政区划代码
    String regionName;//行政区划名称
    String parentId;//父行政区划
    String regionLevel;//层级
    String regionOrder;//排序，用来调整顺序
    String regionNameEn;//行政区划英文名称
    String regionShortnameEn;//行政区划简称

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getRegionCode() {
        return regionCode;
    }

    public void setRegionCode(String regionCode) {
        this.regionCode = regionCode;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getRegionLevel() {
        return regionLevel;
    }

    public void setRegionLevel(String regionLevel) {
        this.regionLevel = regionLevel;
    }

    public String getRegionOrder() {
        return regionOrder;
    }

    public void setRegionOrder(String regionOrder) {
        this.regionOrder = regionOrder;
    }

    public String getRegionNameEn() {
        return regionNameEn;
    }

    public void setRegionNameEn(String regionNameEn) {
        this.regionNameEn = regionNameEn;
    }

    public String getRegionShortnameEn() {
        return regionShortnameEn;
    }

    public void setRegionShortnameEn(String regionShortnameEn) {
        this.regionShortnameEn = regionShortnameEn;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.regionId);
        dest.writeString(this.regionCode);
        dest.writeString(this.regionName);
        dest.writeString(this.parentId);
        dest.writeString(this.regionLevel);
        dest.writeString(this.regionOrder);
        dest.writeString(this.regionNameEn);
        dest.writeString(this.regionShortnameEn);
    }

    public AreaResp() {
    }

    protected AreaResp(Parcel in) {
        this.regionId = in.readString();
        this.regionCode = in.readString();
        this.regionName = in.readString();
        this.parentId = in.readString();
        this.regionLevel = in.readString();
        this.regionOrder = in.readString();
        this.regionNameEn = in.readString();
        this.regionShortnameEn = in.readString();
    }

    public static final Creator<AreaResp> CREATOR = new Creator<AreaResp>() {
        @Override
        public AreaResp createFromParcel(Parcel source) {
            return new AreaResp(source);
        }

        @Override
        public AreaResp[] newArray(int size) {
            return new AreaResp[size];
        }
    };
}
